package com.ftg.learn.xiaofei.mapper;

import com.ftg.learn.xiaofei.pojo.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("dept-ss")
public interface DeptMapper {

    @GetMapping("/dept/show")
     List<Dept> show();
    @PutMapping("/dept/findone/{deptno}")
    public List<Dept> findone(@PathVariable("deptno") String deptno);
    @PostMapping("/dept/update")
    public int update(Dept dept);
    @DeleteMapping("/dept/delete/{deptno}")
    public int delete(@PathVariable("deptno") String deptno);
    @PostMapping("/dept/save")
    public int save(Dept dept);
}
